package com.nfit.web.currencie;

import com.nfit.dao.CurrenciesMapper;
import com.nfit.entity.Currencies;
import com.nfit.entity.vo.ResponeVo;
import com.nfit.service.CurrenciesService;
import com.nfit.service.impl.currencie.CurrenciesServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class CurrenciesController {
    @Autowired
    private CurrenciesService service;

    @RequestMapping("/currencies/all")
    public ResponeVo getAllCurrencies() {
        return ResponeVo.success(service.getCurrencies());
    }
}
